﻿using SDF.Data.Mapping;
using SDF.Plugin.Misc.SAPAdapter.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SDF.Plugin.Misc.SAPAdapter.Mapping
{
    public class SAPClientMap : SDFEntityTypeConfiguration<SAPInstance>
    {
        public SAPClientMap()
        {
            this.ToTable("SAPInstance");
            this.HasKey(t => t.Id);
            this.Property(t => t.CodeName).IsRequired().HasMaxLength(255);
            this.Property(t => t.Name).HasMaxLength(255);

            this.Property(t => t.ApplicationServer).HasMaxLength(255);
            this.Property(t => t.Client).HasMaxLength(255);
            this.Property(t => t.User).HasMaxLength(255);
            this.Property(t => t.Password).HasMaxLength(255);
            this.Property(t => t.SystemNumber).HasMaxLength(255);
            this.Property(t => t.Language).HasMaxLength(255);
            this.Property(t => t.MessageServerHost).HasMaxLength(255);
            this.Property(t => t.LogonGroup).HasMaxLength(255);
            this.Property(t => t.SystemID).HasMaxLength(255);
        }
    }
}